package com.xinzhidi.web.householdClassify.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


/**
 * 住户分类UpdDto对象 household_classify
 *
 * @author gm
 * @date 2023-06-09
 */
@ApiModel(value = "住户分类UpdDto对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class HouseholdClassifyUpdDto
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "住户分类id/序号")
    @NotNull(message = "住户分类id/序号不能为空")
    @Min(value = 0,message = "住户分类id/序号不能比0小")
    private Long id;

    @ApiModelProperty(value = "小区id")
    @NotNull(message = "小区id不能为空")
    @Min(value = 0,message = "小区id不能比0小")
    private Long plotId;

    @ApiModelProperty(value = "小区名称")
    @NotBlank(message = "小区名称不能为空")
    @Size(max = 100, message = "小区名称长度不能大于100")
    private String plotName;

    @ApiModelProperty(value = "分类名称")
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 100, message = "分类名称长度不能大于100")
    private String classifyName;

    @ApiModelProperty(value = "描述")
    private String remark;

}
